f5ce8f9aeaaf1a19aae2e2abaec4a2bc467bdf44
[git-annex.git] /
1 [[!comment format=mdwn
2  username="joey"
3  subject="""comment 2"""
4  date="2023-03-23T19:35:33Z"
5  content="""
6 I was able to reproduce something that looks similar to this without
7 needing to interrupt any command:
8
9         joey@darkstar:~/tmp/bench>git clone a b
10         Cloning into 'b'...
11         done.
12         joey@darkstar:~/tmp/bench>cd b
13         joey@darkstar:~/tmp/bench/b>git config annex.adjustedbranchrefresh 1
14         joey@darkstar:~/tmp/bench/b>git annex adjust --unlock-present
15         adjust 
16         Switched to branch 'adjusted/master(unlockpresent)'
17         ok
18         joey@darkstar:~/tmp/bench/b#master(unlockpresent)>ls
19         foo@
20         joey@darkstar:~/tmp/bench/b#master(unlockpresent)>git-annex get
21         get foo (from origin...) 
22         ok                                
23         (recording state in git...)
24         joey@darkstar:~/tmp/bench/b#master(unlockpresent)>ls
25         foo
26         joey@darkstar:~/tmp/bench/b#master(unlockpresent)>git-annex drop
27         drop foo ok
28         error: Your local changes to the following files would be overwritten by checkout:
29                 foo
30         Please commit your changes or stash them before you switch branches.
31         Aborting
32         
33           Updating adjusted branch failed.
34         (recording state in git...)
35
36 And it was left in a similar detached head status:
37
38         HEAD detached at 2aab85d
39         nothing to commit, working tree clean
40
41 This seems be be a bug with the implementation of annex.adjustedbranchrefresh
42 """]]